import os
import sys

from pyparsing import *

from venya.lib import stdlib

sup = lambda word: Keyword(word).suppress()
grp = lambda key, obj: Group(key + obj)

class ParserError(Exception):
   pass

class Parser(object):
   def __init__(self, File):
      self._parser = None
      self._prog = None
      self._fh = None
      self._lb, self._rb = map(Suppress, '{}')
      self._lp, self._rp = map(Suppress, '()')
      self._lbk, self._rbk = map(Suppress, '[]')
      self._lt, self._gt = map(Suppress, '<>')
      self._rule = None

   def language(self):
      vyint = Word(nums).setName('int')
      vyfloat = Group(Combine(vyint + Optional("." + vyint))).setParseAction(
            self._verifyFloat).setName('float')
      vystring = quotedString.setParseAction(self._verifyString).setName(
            'string')

   def parse(self):



   

